package com.service.impl;

import com.entity.Admin;
import com.mapper.AdminMapper;
import com.service.AdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AdminServiceImpl implements AdminService {
    @Autowired
    AdminMapper adminMapper;

    @Override
    public Admin findManagerById(int mid) {
        return adminMapper.findAdminById(mid);
    }

    @Override
    public Admin findByUserNameAndPwd(String username, String password) {
        return adminMapper.findByUserNameAndPwd(username, password);
    }
}
